const express = require("express");
const testQuesController = require("../controller/testQuesController");
const requireAuth = require("../middleware/requireAuth");
const router = express.Router({ mergeParams: true });

router
  .route("/")
  .post(requireAuth, testQuesController.createTestQues)
  .get(requireAuth, testQuesController.getAllTestQues);

router
  .route("/:id")
  .delete(requireAuth, testQuesController.deleteTestQues)
  .patch(requireAuth, testQuesController.updateTestQues);

module.exports = router;
